const express = require("express");
const entryexam = require("../models/entry_exam");
const midexam = require("../models/mid_exam");
const endexam = require("../models/end_exam");
const router = new express.Router();
router.post("/entry_exam",async(req,res)=>{
    console.log(req.body);
    await entryexam.create(req.body);
    res.send("入学考试");

})
router.post("/mid_exam",async(req,res)=>{
    console.log(req.body);
    await midexam.create(req.body);
    res.send("期中考试");

})
router.post("/end_exam",async(req,res)=>{
    console.log(req.body);
    await endexam.create(req.body);
    res.send("期末考试");

})
module.exports = router;